File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
import type { Metadata } from 'next';
import { notFound } from 'next/navigation';
import { verifySession } from '@/lib/auth/dal';
import {
contentCutUrls,
contentThumbnailUrl,
fetchContentDetail,
} from '@/lib/data/repositories/content-repository';
import { MIN_COMIC_CUTS } from '@/lib/domain/content';
import { ComicForm } from '../_components/comic-form';
export const metadata: Metadata = { title: '콘텐츠 수정 (4컷금융만화)' };
export const dynamic = 'force-dynamic';
interface PageProps {
params: Promise<{ cntntsSn: string }>;
}
export default async function Page({ params }: PageProps) {
await verifySession();
const { cntntsSn } = await params;
const item = await fetchContentDetail('comic', cntntsSn);
if (!item) {
notFound();
}
return (
<ComicForm
item={item}
thumbnailUrl={contentThumbnailUrl(item)}
cutUrls={contentCutUrls(item, MIN_COMIC_CUTS)}
/>
);
}